package com.hnqcgc.fz.dao;

import com.hnqcgc.fz.vo.TUser;

import java.sql.SQLException;

public interface IUserdao {
    //查询昵称是否存在
    boolean getUserByName(String realname) throws SQLException;

    //新增（注册）
    boolean save(String name,String pwd)throws SQLException;

    //登录
    TUser login(String username,String password,int role)throws SQLException;


}
